package com.xiaoma.test;

import com.xiaoma.api.HelloService;
import com.xiaoma.impl.SocketServiceImpl;
import com.xiaoma.server.SocketServer;

/**
 * @Author: xiaoma
 * @Date: 2021/7/5 14:05
 * @description: 测试用服务提供方（服务端）
 */
public class SocketTestServer {
    public static void main(String[] args) {
        HelloService socketService= new SocketServiceImpl();
        SocketServer socketServer = new SocketServer("127.0.0.1", 9998);
        socketServer.publishService(socketService, HelloService.class);
    }
}
